package com.bocai.service.impl;

import com.bocai.bean.RuleInfo;
import com.bocai.mapper.RuleInfoMapper;
import com.bocai.service.IRuleTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RuleTypeServiceImpl implements IRuleTypeService {
    @Autowired
    RuleInfoMapper ruleInfoMapper;

    @Override
    public RuleInfo selectRuleInfo(Integer ruleType, Integer selection) {
        RuleInfo ruleInfo = new RuleInfo();
        ruleInfo.setRuleType(ruleType);
        ruleInfo.setSelection(selection);

        return ruleInfoMapper.selectByPrimaryKey(ruleInfo);
    }
}
